const { resolve } = require('path')
const r = path => resolve(__dirname, path)

require('babel-core/register')({
  'presets': [
    'stage-3',
    'latest-node'
  ],
  'plugins': [
    'transform-decorators-legacy',
    ['module-alias', [
      {'src': r('./server'), 'expose': '~'},
      {'src': r('./server/database'), 'expose': 'database'}
    ]]
  ]
})

require('babel-polyfill')
// require('./server/crawler/wikiData')
require('./server')
